#ifndef LINK
#define LINK

#include <iostream>
#include <iomanip>
#include "../pixelprocessor/pixelprocessor.h"


class Link
{

  /* declare pointers to processors on either side of the link */
  PixelProcessor * ProcessorLinkA;
  PixelProcessor * ProcessorLinkB;

  /* NOTE: representative of the 2 physical link between processors */
  bool bResetLine;
  bool bDataLine;

 public:

  /* Contructor/Destructor */
  Link(PixelProcessor * linkA, PixelProcessor * linkB);
  ~Link(void);

  void SetDataLine(bool bit);
  void ResetDataLine(void);

  bool ReadDataLine(void);

};

#endif
